import Vue from 'vue'
import './cube-ui'
import App from './App.vue'
import 'amfe-flexible'
import VConsole from 'vconsole'

Vue.config.productionTip = false

if (window.apiready) {
  window.apiready = () => {
    Vue.prototype.$api = window.api;
    const router = require('./router').default;
    // const store = require("./store").default;
    new VConsole();
    new Vue({
      router,
      render: h => h(App),
    }).$mount('#app')
  }
} else {
  Vue.prototype.$api = window.api || {};
  const router = require('./router').default;
  // const store = require("./store").default;
  new VConsole();
  new Vue({
    router,
    render: h => h(App),
  }).$mount('#app')
}

